package effect;

import card.CreatureCard;


public class Regeneration extends Effect {
	public Regeneration(){
		name="Regeneration";
		description="The unit regenerates 1 hp each turn.";
		imageName="cardIconWindmill.png";
		effectTypes.add(EffectType.triggerOnTurnEnd);
	}
	
	@Override
	public void triggerOnTurnEnd(){
		CreatureCard tempCard = (CreatureCard)EffectUtil.getCard(this);
		if(tempCard.getCurrentHealth() != tempCard.getActualMaxHealth())
			tempCard.setCurrentHealth(tempCard.getCurrentHealth()+1);
		System.out.println("Regeneration");
	}

}